package com.hsxshop.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by wangchongya on 17/7/11.
 */
@Entity
@Table( name = "nhsx_attribute" )
public class GoodsAttribute {

    private int id;
    private String name;
    private int storage;
    private int sort;
    private int state;

    public GoodsAttribute(){}
    public GoodsAttribute(int id,String name,int storage,int sort,int state){
        this.id=id;
        this.name=name;
        this.storage=storage;
        this.sort=sort;
        this.state=state;
    }

    @Id
    @GeneratedValue(generator="increment")
    @GenericGenerator(name="increment", strategy = "increment")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }
    public int getStorage() {
        return storage;
    }

    public void setStorage(int storage) {
        this.storage = storage;
    }
}
